import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {FormFormLeaveComponent} from './form-leave/form-leave.component';
import {CanDeactivateGuard} from 'great-ngform';
import {FormFormLeave2Component} from './form-leave2/form-leave2.component';

const routes: Routes = [
  {path: 'form-leave', component: FormFormLeaveComponent, canDeactivate: [CanDeactivateGuard]},
  {path: 'form-leave2', component: FormFormLeave2Component, canDeactivate: [CanDeactivateGuard]}
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class FormRoutingModule {
}
